﻿using AbpProjectTemplate.Localization;
using Jy.Abp.BlobStoring;
using Localization.Resources.AbpUi;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Abp.VirtualFileSystem;

namespace AbpProjectTemplate;

[DependsOn(
    typeof(AppApplicationContractsModule),
    typeof(JyAbpBlobStoringHttpApiModule),

    typeof(AbpAspNetCoreMvcModule)
    //typeof(AbpAccountHttpApiModule),
    //typeof(AbpIdentityHttpApiModule),
    //typeof(AbpPermissionManagementHttpApiModule),
    //typeof(AbpTenantManagementHttpApiModule),
    //typeof(AbpFeatureManagementHttpApiModule),
    //typeof(AbpSettingManagementHttpApiModule)
    )]
public class AppHttpApiModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        ConfigureLocalization();
    }

    private void ConfigureLocalization()
    {
        Configure<AbpLocalizationOptions>(options =>
        {
            options.Resources
                .Get<AppResource>()
                .AddBaseTypes(
                    typeof(AbpUiResource)
                );
        });
    }
}
